package com.keba.lamp.complaint.manager.impl;

import com.keba.basic.base.manager.impl.SuperManagerImpl;
import com.keba.basic.database.mybatis.conditions.Wraps;
import com.keba.basic.database.mybatis.conditions.query.LbQueryWrap;
import com.keba.lamp.complaint.entity.Defendant;
import com.keba.lamp.complaint.manager.DefendantManager;
import com.keba.lamp.complaint.mapper.DefendantMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 通用业务实现类
 * 被告信息
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-03-14 22:19:33
 * @create [2025-03-14 22:19:33] [chaowu.wang] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class DefendantManagerImpl extends SuperManagerImpl<DefendantMapper, Defendant> implements DefendantManager {

    @Override
    public List<Defendant> queryByName(String name) {
        LbQueryWrap<Defendant> queryWrap = Wraps.<Defendant>lbQ()
                .like(Defendant::getName, name);
        return this.list(queryWrap);
    }
}


